var there = true;

function windowResolution(){
    var style = '<link rel="stylesheet" type="text/css" href="/contents/templates/tablets.css" class="resize-style" />'
    var windowWidth = $j(window).width();
    if( (windowWidth < 990) &&  there ){
        $j('head').append(style);
        there = false;
    }else{
        if( (windowWidth >  990) &&  !there){
            $j('.resize-style').remove();
            there = true ;
        }
    }
}

function toggleSub (e){
    var container = $j('.inner-section').has(e);
    
    $j('.inner-section .sub').hide();
    
    $j(container).find('.sub').show().addClass('open');
}

